package com.cyl.wms.controller;


import com.cyl.wms.domain.DeviceInfo;
import com.cyl.wms.domain.ShipmentOrder;
import com.cyl.wms.service.DeviceDetectService;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api("设备检测接口列表")
@RestController
@RequestMapping("/wms/deviceDetect")
public class DeviceDetectController {

    @Autowired
    private DeviceDetectService service;

    @ApiOperation("同步检测入库信息")
    @Log(title = "设备检测", businessType = BusinessType.INSERT)
    @PostMapping("/syncDevice")
    public ResponseEntity<Integer> syncDevice(@RequestBody DeviceInfo deviceInfo) {
        return ResponseEntity.ok(service.syncDevice(deviceInfo));
    }
}
